package com.example.bakend.service.Impl;

import com.example.bakend.mapper.LoginMapper;
import com.example.bakend.pojo.Admin;
import com.example.bakend.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    LoginMapper loginMapper;

    @Override
    public Admin selectAdmin(Integer adminId) {
        return loginMapper.selectAdmin(adminId);
    }

    @Override
    public Admin login(Admin admin) {
        return loginMapper.login(admin);
    }
}
